package com.czn.shopdemo.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author Zenan Chen
 * @date 2023/4/12 16:41
 */
@Data
@TableName(value = "t_shop_demo_logs")
@EqualsAndHashCode(callSuper = false)
public class Logs extends BaseEntity {

    @ApiModelProperty(value = "用户id", example = "5")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty(value = "用户名称", example = "张三")
    @TableField("user_name")
    private String userName;

    @ApiModelProperty(value = "ip地址", example = "127.0.0.1")
    @TableField("ip")
    private String ip;

    @ApiModelProperty(value = "请求uri", example = "/shop/cart/getCartGoodsDetail")
    @TableField("uri")
    private String uri;

    @ApiModelProperty(value = "请求参数", example = "param1=1")
    @TableField("args")
    private String args;

    @ApiModelProperty(value = "请求方式", example = "GET")
    @TableField("methods")
    private String methods;

    @ApiModelProperty(value = "类名", example = "com.czn.shopdemo.controller.CartController")
    @TableField("class_name")
    private String className;

    @ApiModelProperty(value = "方法名", example = "getCartGoodsDetail")
    @TableField("method_name")
    private String methodName;

}
